<template>
  <div>
    {{ mag }}
    {{ xxx }}

    <button @click="aaa">向高阶传值(伪)</button>
  </div>
</template>

<script>
export default {

  inject: ['mag', 'xx', 'xxx'],
  methods: {
    aaa() {
    //   将拿到方法进行传值
      this.xx('111')
    }
  }

}
</script>

<style>

</style>
